<template>
    <div id="app">

    </div>
</template>

<script>
    import Components from './components/components'

    export default {
        name: 'App',
        data() {
            return {
                items: [],
                current: {
                    title: '首页',
                    component: () => import('./components/Index'),
                }
            }
        },
        methods: {
            clickHandler(c) {
                this.current = c
            }
        },
        mounted() {
            this.items = Components
        }
    }
</script>

<style>
    #app {
        font-family: Avenir, Helvetica, Arial, sans-serif;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        color: #2c3e50;
        width: 100%;
        height: 98vh;
        display: flex;
        flex-flow: row nowrap;
        overflow: hidden;
    }


    .left {
        padding: 15px;
        width: 200px;
        height: 100%;
        display: flex;
        flex-flow: column nowrap;
        align-items: center;
        border-right: 1px #42b983 solid;
    }

    .right {
        width: calc(100% - 200px);
        padding: 15px;
        height: 100%;
    }

    .component {
        width: 100%;
        min-height: 90%;
        display: flex;
        flex-flow: column nowrap;
        align-items: center;
        justify-content: center;
        justify-items: center;
        border: 1px #42b983 solid;
    }

    .logo {
        width: 100px;
        height: 100px;
    }

    .list {
        margin-right: 10px;
        width: 100%;
        height: 100%;
        max-height: 100%;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .list li {
        cursor: pointer;
        line-height: 42px;
    }

    .active {
        color: #42b983;
    }
</style>
